import { ItemTypes } from "@/data/pages/pagesTypes";
import { ApiItemTypeMapping } from "@/data/shared/entityShapes";

export const apiItemTypeMapping: {
  [key in ApiItemTypeMapping]: ItemTypes;
} = {
  [ApiItemTypeMapping.Course]: "course",
  [ApiItemTypeMapping.Exhibition]: "exhibition",
  [ApiItemTypeMapping.Talk]: "talk",
  [ApiItemTypeMapping.ShopItem]: "shopitem",
  [ApiItemTypeMapping.CourseDiscovery]: "bundlecourse",
};

export const apiItemTypeMappingC: {
  [key in ApiItemTypeMapping]: string;
} = {
  [ApiItemTypeMapping.Course]: "课程",
  [ApiItemTypeMapping.Exhibition]: "展览",
  [ApiItemTypeMapping.Talk]: "讲座",
  [ApiItemTypeMapping.ShopItem]: "商品",
  [ApiItemTypeMapping.CourseDiscovery]: "课程",
};
